package com.slz3.business.module.configManagement.conIndexNewGoods.service;

import com.slz3.business.module.configManagement.conIndexNewGoods.domain.ConIndexNewGoods;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.util.MultiValueMap;

import java.util.List;
import java.util.Optional;
import java.util.UUID;
import java.util.stream.Stream;

/**
 * 非事务型 service
 */
public interface ConIndexNewGoodsService {

    ConIndexNewGoods save(ConIndexNewGoods conIndexNewGoods);

    Page<ConIndexNewGoods> page(MultiValueMap<String,String> queryParams);

    ConIndexNewGoods modify(ConIndexNewGoods conIndexNewGoods);

    Optional<ConIndexNewGoods> single(UUID uuid);

    List<ConIndexNewGoods> findAllByUuids(Iterable<UUID> uuids);

    List<ConIndexNewGoods> delete(List<ConIndexNewGoods> conIndexNewGoodsList);
}
